package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutineSingleSample;
import com.zhijian.medical.entity.vo.request.RoutineSingleSampleSearchVo;
import com.zhijian.medical.entity.vo.response.RoutineSingleSampleVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutineSingleSampleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutineSingleSample record);

    int insertSelective(RoutineSingleSample record);

    RoutineSingleSample selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutineSingleSample record);

    int updateByPrimaryKey(RoutineSingleSample record);

    /**
     * 查询总数
     *
     * @param routineSingleSampleSearchVo
     * @return
     */
    int count(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
     * 查询列表
     *
     * @param routineSingleSampleSearchVo
     * @return
     */
    List<RoutineSingleSampleVo> selectList(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
     * 查询单个
     *
     * @param routineSingleSampleSearchVo
     * @return
     */
    RoutineSingleSampleVo selectOne(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutineSingleSampleVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routineSingleSampleSearchVo
     * @return
     */
    void deleteByCondition(RoutineSingleSampleSearchVo routineSingleSampleSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutineSingleSample> entities);

    /**
     * 根据QcId查询列表
     *
     * @param qcId
     * @return
     */
    List<RoutineSingleSampleVo> selectListByQcId(Long qcId);

    List<String> selectNumList(@Param("number")String number);
}